<!--{include manage_header}-->

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	<div class="dashboard" id="dashboard">
		<ul>${mcurrent_order('index')}</ul>
	</div>
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>提现处理记录</h2>
				</div>
				<div class="sect" style="padding:0 10px;">
					<form method="get">
						<p style="margin:5px 0;">
						订单编号：<input type="text" name="id" value=" <!--{if $id>0}-->${htmlspecialchars($id)}<!--{/if}-->" class="h-input"/>&nbsp;
						用户名称：<input type="text" name="uemail" class="h-input" value="${htmlspecialchars($uemail)}" >&nbsp;
						申请状态：<select name="is_fahuo">
						<option value="-1" <!--{if $is_fahuo == -1}-->selected <!--{/if}-->>全部</option> 
						<option value="0" <!--{if $is_fahuo == 0}-->selected <!--{/if}-->>申请中</option> 
						<option value="1" <!--{if $is_fahuo == 1}-->selected <!--{/if}-->>提现成功</option> 
						<option value="2" <!--{if $is_fahuo == 2}-->selected <!--{/if}-->>拒绝提现</option>
						</select>
						</p>
						<p style="margin:5px 0;">申请日期：<input type="text" class="h-input" onFocus="WdatePicker({isShowClear:false,readOnly:true})" name="cbday" value="{$cbday}" /> &nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" class="h-input" onFocus="WdatePicker({isShowClear:false,readOnly:true})" name="ceday" value="{$ceday}" />&nbsp;
						&nbsp;
						</p>
						<p style="margin:5px 0;"><input type="submit" value="搜索" class="formbutton"  style="padding:1px 6px;"/></p>
					<form>
				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
					<tr>
						<th width="40">ID</th>
						<th width="200">用户</th>
						<th width="130">提现金额</th>
						<th width="100">状态</th>
						<th width="150" nowrap>处理时间</th>
						<th width="200" nowrap>申请时间</th>
						<th width="150" nowrap>操作</th>
					</tr>
					<!--{loop $orders $index $one}-->
					<tr ${$index%2?'':'class="alt"'} id="order-list-id-{$one['id']}">
						<td>{$one['id']}</td>
						<td> {$users[$one['user_id']]['username']}</td>
						<td>
							<span class="money">{$currency}</span>${moneyit($one['money'])}
						</td>
						<td>
							<!--{if $one['state'] ==0}-->
								<font color="red">申请中</font>
							<!--{elseif $one['state'] ==1}-->
								已放款
							<!--{elseif $one['state'] ==2}-->
								已拒绝
							<!--{/if}-->
						</td>
						<td>
							<!--{if $one['shentime']}-->
								${date('Y-m-d H:i:s',$one['shentime'])}
							<!--{else}-->
								--
							<!--{/if}-->
						</td>
						<td>${date('Y-m-d H:i:s',$one['addtime'])}</td>
						<td class="op" nowrap>
							<!--{if $one['state'] ==0}-->
								<a href="/ajax/manage.php?action=tixiano_rderview&id={$one['id']}&state=1" class="ajaxlink" ask="确定已经打款了吗？">确认打款</a>
								<a href="/ajax/manage.php?action=tixiano_rderview&id={$one['id']}&state=2" class="ajaxlink" ask="确定拒绝吗？">拒绝</a>
							<!--{elseif $one['state'] ==1}-->
								----
							<!--{elseif $one['state'] ==2}-->
								----
							<!--{/if}-->
						</td>
					</tr>
					<!--{/loop}-->
					<tr><td colspan="9">{$pagestring}</tr>
                    </table>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include manage_footer}-->
